namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PUB_SCHEME")]
    public partial class PUB_SCHEME
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PUB_SCHEME()
        {
            RC_SCHEME_PLAN = new HashSet<RC_SCHEME_PLAN>();
            PL_RC_DETAILS = new HashSet<PL_RC_DETAILS>();
        }

        [Key]
        [StringLength(40)]
        public string SCHEME_ID { get; set; }

        public DateTime? EFFECTIVE_DATE { get; set; }

        [StringLength(20)]
        public string SCHEME_TYPE { get; set; }

        public int? LAYOUT_TYPE { get; set; }

        public int? CAR_COUNT { get; set; }

        public decimal? COAL_TOTAL { get; set; }

        public int? POINT_SUM { get; set; }

        public int? POINT_COUNT { get; set; }
        
        [StringLength(400)]
        public string SCHEME_MARK { get; set; }

        public int? STATUS { get; set; }
        
        [StringLength(40)]
        public string COMPILE_USER { get; set; }

        public DateTime COMPILE_DATE { get; set; }

        public int? SAMPLE_MACHINE_GROUP { get; set; }

        [StringLength(400)]
        public string SAMPLE_MACHINE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_SCHEME_PLAN> RC_SCHEME_PLAN { get; set; }

        public virtual ICollection<PL_RC_DETAILS> PL_RC_DETAILS { get; set; }
    }
}
